home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
vmed.arc
/
VMLC.CCC
< prev
next >
Wrap
Text File
|
1985-12-03
|
1KB
|
43 lines
/* VMLC/CCC
* virtual memory LC interfacing
*
* Copyright 1983 by Jim Kyle - All Rights Reserved
* Licensed for individual non-commercial use only.
*
* created: November 16, 1983 - Jim Kyle
* last changed: November 23, 1983 - Jim Kyle
*/
/*
* vm_err() prints a message and returns ERR
*/
vm_err(s) char *s;
{ fprintf(stderr,"VM ERROR in ");
fprintf(stderr,"%s!\n",s);
return (ERR);
}
/*
* vm_abt() prints a message and aborts via EXIT if
* the input code is non-zero, else just returns.
*/
vm_abt(k,s) int k; char *s;
{ if (k) {
fprintf(stderr,"FATAL ");
exit(vm_err(s));
}
/* else just return to caller */
}
/*
* vm_move() interfaces to LC standard move(); for any
* system not providing move(), AL code would be
* required as speed is essential (Z80 LDIR type).
*/
vm_move(src,dst,len) int len; char *src,*dst;
{ if (len > 0) /* be sure len > 0 */
move(src,dst,len);
/* else do nothing */
}